package com.hckjsec.law.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;
import com.hckjsec.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 公法基础信息对象 law_wechat_user
 * 
 * @author cyt
 * @date 2021-11-08
 */
public class LawWechatUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** openid */
    private String openid;

    /** 配置id */
    @Excel(name = "配置id")
    private Long configId;

    /** openid */
    @Excel(name = "openid")
    private String unionid;

    /** 微信名 */
    @Excel(name = "微信名")
    private String nickname;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 语言 */
    @Excel(name = "语言")
    private String language;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 国家 */
    @Excel(name = "国家")
    private String country;

    /** 微信图像 */
    @Excel(name = "微信图像")
    private String avatarurl;

    /** 经度 */
    @Excel(name = "经度")
    private String longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private String latitude;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operatortime;

    public LawWechatUser() {
    }

    public LawWechatUser(String openid, Long configId, String longitude, String latitude) {
        this.openid = openid;
        this.configId = configId;
        this.longitude = longitude;
        this.latitude = latitude;
    }

    public void setOpenid(String openid)
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }
    public void setUnionid(String unionid) 
    {
        this.unionid = unionid;
    }

    public String getUnionid() 
    {
        return unionid;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setLanguage(String language) 
    {
        this.language = language;
    }

    public String getLanguage() 
    {
        return language;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }
    public void setAvatarurl(String avatarurl) 
    {
        this.avatarurl = avatarurl;
    }

    public String getAvatarurl() 
    {
        return avatarurl;
    }
    public void setLongitude(String longitude) 
    {
        this.longitude = longitude;
    }

    public String getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(String latitude) 
    {
        this.latitude = latitude;
    }

    public String getLatitude() 
    {
        return latitude;
    }
    public void setOperatortime(Date operatortime) 
    {
        this.operatortime = operatortime;
    }

    public Date getOperatortime() 
    {
        return operatortime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("openid", getOpenid())
            .append("configId", getConfigId())
            .append("unionid", getUnionid())
            .append("nickname", getNickname())
            .append("gender", getGender())
            .append("language", getLanguage())
            .append("city", getCity())
            .append("province", getProvince())
            .append("country", getCountry())
            .append("avatarurl", getAvatarurl())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("operatortime", getOperatortime())
            .toString();
    }
}
